package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.ExamresultMapper;
import com.ruoyi.house_sale.domain.Examresult;
import com.ruoyi.house_sale.service.IExamresultService;

import javax.annotation.Resource;

/**
 * 答题卡Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-16
 */
@Service
public class ExamresultServiceImpl implements IExamresultService 
{
    @Resource
    private ExamresultMapper examresultMapper;

    /**
     * 查询答题卡
     * 
     * @param resultid 答题卡主键
     * @return 答题卡
     */
    @Override
    public Examresult selectExamresultByResultid(Long resultid)
    {
        return examresultMapper.selectExamresultByResultid(resultid);
    }

    /**
     * 查询答题卡列表
     * 
     * @param examresult 答题卡
     * @return 答题卡
     */
    @Override
    public List<Examresult> selectExamresultList(Examresult examresult)
    {
        return examresultMapper.selectExamresultList(examresult);
    }

    /**
     * 新增答题卡
     * 
     * @param examresult 答题卡
     * @return 结果
     */
    @Override
    public int insertExamresult(Examresult examresult)
    {
        return examresultMapper.insertExamresult(examresult);
    }

    /**
     * 修改答题卡
     * 
     * @param examresult 答题卡
     * @return 结果
     */
    @Override
    public int updateExamresult(Examresult examresult)
    {
        return examresultMapper.updateExamresult(examresult);
    }

    /**
     * 批量删除答题卡
     * 
     * @param resultids 需要删除的答题卡主键
     * @return 结果
     */
    @Override
    public int deleteExamresultByResultids(Long[] resultids)
    {
        return examresultMapper.deleteExamresultByResultids(resultids);
    }

    /**
     * 删除答题卡信息
     * 
     * @param resultid 答题卡主键
     * @return 结果
     */
    @Override
    public int deleteExamresultByResultid(Long resultid)
    {
        return examresultMapper.deleteExamresultByResultid(resultid);
    }

    @Override
    public Examresult selectByExamId(Long examid, Long custid) {
        return examresultMapper.selectByExamId(examid,custid);

    }

    @Override
    public List<Examresult> selectByReseachId(Long reseachid, Long custid) {
        return examresultMapper.selectByReseachId(reseachid,custid);
    }


}
